<extend name="Base:base" />
<block name="title">{$title}</block>
<block name="content">
    <form action="{:U('Admin/Article/addDo')}" method="post">
        <table class="table">
            <tr>
                <th>文章类型</th>
                <td>
                    <select name="type_id">
                        <foreach name="types_article" item="menu">
                            <option value="{$menu.id}">{$menu.name}</option>
                        </foreach>
                    </select>
                </td>
                <th>文章标题</th>
                <td> <input style="width: 300px" type="text" name="title"  value="" /></td>
                <th>是否显示</th>
                <td><input type="radio" name="is_active" value="1">显示
                    <input type="radio" name="is_active" value="0">不显示</td>
            </tr> 
            <tr>
                <th colspan="6">文章概要</th>
            </tr>
            <tr>
                <td colspan="6"><textarea name="summary" id="content"></textarea></td>
            </tr>
            <tr>
                <th colspan="6">文章内容</th>
            </tr>
            </table>
            <!-- 加载编辑器的容器 -->
            <script id="container" name="content" type="text/plain"></script>
            <!-- 配置文件 -->
            <script type="text/javascript" src="__ROOT__/ueditor/ueditor.config.js"></script>
            <!-- 编辑器源码文件 -->
            <script type="text/javascript" src="__ROOT__/ueditor/ueditor.all.js"></script>
            <!-- 实例化编辑器 -->
            <script type="text/javascript">
                UE.getEditor('container', {
                    "initialFrameWidth": "80%",
                    "initialFrameHeight": 250,
                });
            </script>
            <input type="submit" value="保存新增"/>
        </form>
</block>